# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=qutebrowser
pkgver=1.13.1
pkgrel=0
pkgdesc="A keyboard-driven, vim-like browser based on PyQT5"
url="https://qutebrowser.org/"
arch="noarch !s390x !ppc64le !armhf !mips !mips64" # Blocked on mips, s390x and ppc64le by qt5-qtwebengine, on armhf by py3-qt5 -> qt5-qtdeclarative-dev
license="GPL-3.0-only"
depends="
	py3-attrs py3-jinja2 py3-pygments py3-pypeg2 py3-qt5 py3-yaml qt5-qtbase
	qt5-qtwebengine qt5-qtbase-sqlite py3-qtwebengine py3-setuptools
	py3-sip-pyqt5
"
makedepends="asciidoc"
checkdepends="py3-pytest py3-hypothesis"
subpackages="$pkgname-doc"
source="
	https://github.com/qutebrowser/qutebrowser/releases/download/v$pkgver/qutebrowser-$pkgver.tar.gz
"
options="!check" # https://github.com/qutebrowser/qutebrowser/issues/5081

build() {
	a2x -f manpage doc/qutebrowser.1.asciidoc
	python3 setup.py build
}

check() {
	pytest-3
}

package() {
	make -f misc/Makefile DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="a3eb3845a896a88f755e4e7d336d86a8740be66ae94a8e19fb4739148ce1e66aa9fddec04df9308a51c8ef922fa28e3683bb911dd3ba7c91816c26ea92665cfd  qutebrowser-1.13.1.tar.gz"
